package com.qiaotongtianxia.loans.views.refrushRecyclerView;

import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * BaseViewHolder 顶级父类
 */
public class BaseViewHolder<T> extends RecyclerView.ViewHolder{

    public BaseViewHolder(View itemView) {
        super(itemView);
    }
    public void setData(final T data) {
        itemView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onItemViewClick(data);
            }
        });
    }

    public void onItemViewClick(T data) {

    }

}
